<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="*|/"><xsl:apply-templates/></xsl:template>

<xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>

<xsl:template match='nbsp' name='nbsp'>
<xsl:text disable-output-escaping='yes'>&amp;nbsp;</xsl:text>
</xsl:template>

<xsl:template match="blog[(floor( @settings div 8192 ) mod 2)]">

<TABLE class="body" cellSpacing="0" cellPadding="0"  border="0" >
	<TBODY>
		<TR>
			<TD width="8"><IMG height="8" src="/imgs/pvts/box-tl.gif" width="8" border="0"/></TD>
			<TD width="100%" background="/imgs/pvts/box-t-back.gif"  bgcolor="white"></TD>
			<TD width="8"><IMG height="8" src="/imgs/pvts/box-tr.gif" width="8" border="0"/></TD>
		</TR>
		<TR vAlign="top">
			<TD width="8" background="/imgs/pvts/box-l-back.gif" bgcolor="white"></TD>
			<TD width="100%" align="left" style="padding:2px;" bgcolor="white">

<table width="100%" border="0">
<tr><td class="body" style="padding-bottom:8px;">
<center><nobr>
<b>
  Ultimi visitatori
</b>
</nobr></center>
</td></tr>

<xsl:for-each select="blogVisitors[position() &lt;30]">

	<tr>
<!--	<td class="CDB" width="10px">&#160;</td> -->
	<td style="border-bottom:1px dotted #d6c7a6;" class="body_10px">


<!-- <tr><td class="nboxR"> -->
	<xsl:choose>
	<xsl:when test='floor( @uStatus div 32 ) mod 2'><img src="/imgs/mela.gif"/></xsl:when>
	<xsl:when test='floor( @uStatus div 16 ) mod 2 and (@sexid="24" or @sexid="26")'><img src="/imgs/ananas_m.gif"/></xsl:when>
	<xsl:when test='floor( @uStatus div 16 ) mod 2 and (@sexid="25" or @sexid="27")'><img src="/imgs/ananas_f.gif"/></xsl:when>
	<xsl:when test='@certified=1 and (@sexid="24" or @sexid="26")'><img src="/imgs/symbol_mc.gif"/></xsl:when>
	<xsl:when test='@certified=1 and (@sexid="25" or @sexid="27")'><img src="/imgs/symbol_fc.gif"/></xsl:when>
	<xsl:when test='@sexid="24" or @sexid="26"'><img src="/imgs/symbol_m.gif"/></xsl:when>
	<xsl:when test='@sexid="25" or @sexid="27"'><img src="/imgs/symbol_f.gif"/></xsl:when>
	</xsl:choose>
&#160;
	<xsl:choose>
		<xsl:when test="(floor( @settings div 8192 ) mod 2) and (floor( @settings div 16384 ) mod 2)">
			<xsl:choose>
				<xsl:when test='/online/@loggedUser=@userid'>
					<!-- se sono io -->
					<a class="body_red" href="/userinfo/blog.aspx?userid={@userid}">
					<b><xsl:value-of select="@nick"/></b>
					</a>
				</xsl:when>
				<xsl:when test='@buddy=@userid'>
					<!-- se e' nella lista amichetti -->
					<a class="nick" href="/userinfo/blog.aspx?userid={@userid}">
					<b><xsl:value-of select="@nick"/></b>
					</a>
				</xsl:when>
				<xsl:otherwise>
					<a class="nick" href="/userinfo/blog.aspx?userid={@userid}">
					<xsl:value-of select="@nick"/>
					</a>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:when>
		<xsl:when test="1!=(floor( @settings div 8192 ) mod 2) or 1=(floor( @settings div 16384 ) mod 2)">
			<xsl:choose>
				<xsl:when test='/online/@loggedUser=@userid'>
					<!-- se sono io -->
					<a class="body_red" href="/profileShow.aspx?userGuid={@userid}">
					<b><xsl:value-of select="@nick"/></b>
					</a>
				</xsl:when>
				<xsl:when test='@buddy=@userid'>
					<!-- se e' nella lista amichetti -->
					<a class="nick" href="/profileShow.aspx?userGuid={@userid}">
					<b><xsl:value-of select="@nick"/></b>
					</a>
				</xsl:when>
				<xsl:otherwise>
					<a class="nick" href="/profileShow.aspx?userGuid={@userid}">
					<xsl:value-of select="@nick"/>
					</a>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:when>
		<xsl:otherwise>

		</xsl:otherwise>
	</xsl:choose>
</td></tr>
</xsl:for-each>

</table>

			</TD>
			<TD width="8" background="/imgs/pvts/box-r.gif" bgcolor="white"><IMG height="10" src="/imgs/pvts/box-r.gif" width="8" border="0"/></TD>
		</TR>
		<TR>
			<TD width="8"><IMG height="8" src="/imgs/pvts/box-bl.gif" width="8" border="0"/></TD>
			<TD width="100%" background="/imgs/pvts/box-b.gif" bgcolor="white"><IMG height="8" src="/imgs/pvts/box-b.gif" width="10" border="0"/></TD>
			<TD width="8"><IMG height="8" src="/imgs/pvts/box-br.gif" width="8" border="0"/></TD>
		</TR>
	</TBODY>
</TABLE>


</xsl:template>

</xsl:stylesheet>